<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', width:60, unresize:true, align:'center', edit:'text'}">排序ID</th>
        <th lay-data="{field:'id', width:80, unresize:true, align:'center'}">ID</th>
        <th lay-data="{field:'bizType', unresize:true, align:'left',width:230}">业务类型</th>
        <th lay-data="{field:'reason',  unresize:true, align:'center'}">失败缘由</th>
        <th lay-data="{field:'firstLetter', unresize:true, align:'center',width:60, edit:'text'}">首字母</th>
        <th lay-data="{field:'status', width:80, unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'操作',width:80, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.id}" class="">id</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ProductDict).translateBizType(item.bizType,'/')}" class="layui-gray">bizType</td>
        <td th:text="${item.reason}" class="layui-gray">reason</td>
        <td th:text="${item.firstLetter}" class="layui-gray">firstLetter</td>
        <td th:text="${item.status==2?'正常':'停用'}">status</td>
        <td>
            <div>
                <a th:if="${#authPermit.checkPermit('/orderconfig/serviceAuditReason/detail.action')}" style="color: #00a0e9"
                   th:lay-href="|/orderconfig/serviceAuditReason/detail.action?id=${item.id}"
                   lay-text="修改"  text="修改">修改</a>&nbsp;&nbsp;
            </div>
        </td>
    </tr>
    </tbody>
</table>
